﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.Distribution
{
    /// <summary>
    /// 佣金明细
    /// </summary>
    [TableName("dis_Brokerage")]
    public class Brokerage
    {
        public int Id { get; set; }
        /// <summary>
        /// 佣金结算给谁
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 来源订单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 下单人
        /// </summary>
        public int TradeUserId { get; set; }

        /// <summary>
        /// 结佣时间
        /// </summary>
        public DateTime TradeTime { get; set; }
        

        /// <summary>
        /// 结佣金额
        /// </summary>
        public decimal OrderAmount { get; set; }
        /// <summary>
        /// 佣金
        /// </summary>
        public decimal BrokerageAmount { get; set; }
        /// <summary>
        /// 费用类型0：成交返佣
        /// </summary>
        public int BrokerageType { get; set; }
        /// <summary>
        /// 状态0待审核，1已审核，20待发放，21已发放
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>

        public string Remark { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public int ApprovedUserId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ApprovedUserName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime ApprovedTime { get; set; }
        /// <summary>
        /// 分佣提成点%
        /// </summary>
        public int BrokerageRise { get; set; }
    }
}
